package generic.interfaces;

import java.util.ArrayList;
import java.util.Collection;

import exceptions.PersistenceExceptionMessage;

public interface PersistInFile <ENTITY> {
	
	public ENTITY getInstanceFromArray(String[] str);
	public Collection<ENTITY> order(ArrayList<ENTITY> entities);
	public int removeAll() throws PersistenceExceptionMessage;
	public ArrayList<ENTITY> findAll() throws PersistenceExceptionMessage;
	public void persist() throws PersistenceExceptionMessage;
	public ENTITY merge() throws PersistenceExceptionMessage;
	public ArrayList<String> getArrayAsString() throws PersistenceExceptionMessage;
	
}
